package com.longchat.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.longchat.domain.permission.Resource;
import com.longchat.domain.permission.Resource.ResourceType;

public interface ResourceJpaRepository extends JpaRepository<Resource, Integer> {
	
	@Query("select r from Resource r where r.type=?1 ")
	List<Resource> findAllMenu(ResourceType type);
	
}
